import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import AppReleaseList from './views/app-release/list.vue'
import AppReleaseCreate from './views/app-release/create.vue'
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '主页',
        hidden: true,
        children: [
            { path: '/main', component: Main, name: '主页', hidden: true },
        ]
    },
    {
        path: '/app-release',
        component: Home,
        name: 'app版本管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/app-release', component: AppReleaseList, name: '版本列表' },
            { path: '/app-release/create', component: AppReleaseCreate, name: '发布软件', hidden: true },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;